package testClasses.misc;

import com.jme3.scene.Geometry;
import com.jme3.scene.Node;
import com.jme3.scene.Spatial;

public class SpatialParentTest {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Geometry geom = new Geometry("Test");
		Node rootNode = new Node("root");
		Node impostor = new Node("impostor");
		
		System.out.println(geom.getParent());
		
		if (geom.getParent() == null) {
			System.out.println("Yep!");
		}
//		System.out.println(geom.getParent().getName());
		
		
		rootNode.attachChild(geom);
		rootNode.attachChild(geom);
		rootNode.attachChild(geom);
		rootNode.attachChild(geom);
		rootNode.attachChild(geom);
		rootNode.attachChild(geom);
//		impostor.attachChild(geom);		
		System.out.println(geom.getParent().getName());
		

	}

}
